import request from '@/utils/request'

export function SelectAdminList(data) {
    return request({
        url: '/api/admin/selectAdminList',
        method: 'post',
        data
    })
}
export function addAdminInfo(data) {
    return request({
        url: '/api/admin/addAdminInfo',
        method: 'post',
        data
    })
}
export function editAdminInfo(data) {
    return request({
        url: '/api/admin/editAdminInfo',
        method: 'post',
        data
    })
}
export function getSupplierList(data) {
    return request({
        url: '/api/Supplier/getSupplierList',
        method: 'post',
        data
    })
}
export function getOrgList(data) {
    return request({
        url: '/api/org/index',
        method: 'post',
        data
    })
}
export function delAdminInfo(data) {
    return request({
        url: '/api/admin/delAdminInfo',
        method: 'post',
        data
    })
}

export function getRoles(data) {
    return request({
        url: '/api/Admin/getRoles',
        method: 'post',
        data
    })
}
export function findAdminInfo(data) {
    return request({
        url: '/api/admin/findAdminInfo',
        method: 'post',
        data
    })
}
//采购绑定供应商
export function bindSupplier(data) {
    return request({
        url: '/api/Admin/bindSupplier',
        method: 'post',
        data
    })
}
//采购绑定供应商列表
export function getBindSupplierList(data) {
    return request({
        url: '/api/Admin/getBindSupplierList',
        method: 'post',
        data
    })
}
export function unfreeze(data) {
    return request({
        url: '/api/admin/unfreeze',
        method: 'post',
        data
    })
}
export function resetAdminPassword(data) {
    return request({
        url: '/api/admin/resetAdminPassword',
        method: 'post',
        data
    })
}
export function getAreaList(data) {
    return request({
        url: '/api/Erpapi/getAreaList',
        method: 'post',
        data
    })
}
export function selectBuyerList(data) {
    return request({
        url: '/smkapi/Buyer/selectBuyerList',
        method: 'post',
        data
    })
}
export function selectSupplierList(data) {
    return request({
        url: '/smkapi/supplier/selectSupplierList',
        method: 'post',
        data
    })
}
export function getRegionList(data) {
    return request({
        url: '/smkapi/Region/getRegionList',
        method: 'post',
        data
    })
}
export function selectRdcDataNew(data) {
    return request({
        url: '/api/rdc/selectRdcDataNew',
        method: 'post',
        data
    })
}
